
local NetCmd = {}
NetCmd.C2S_HEARTBEAT            = 5
NetCmd.S2C_HEARTBEAT        	= 6

--查看房间信息
NetCmd.C2S_WEB_GAME_INFO          = 2001  
NetCmd.S2C_WEB_GAME_INFO          = 2002 
--网页登录房间
NetCmd.C2S_WEB_JOIN_ROOM      = 2003    
NetCmd.S2C_WEB_JOIN_ROOM      = 2004 
--网页 加入朋友圈
NetCmd.C2S_WEB_USER      = 2005    
NetCmd.S2C_WEB_USER      = 2006 
--网页 加入朋友圈
NetCmd.C2S_WEB_JOIN_FRIEND      = 2007   
NetCmd.S2C_WEB_JOIN_FRIEND      = 2008
--错误收集
NetCmd.C2S_WEB_ERROR      = 2009   
NetCmd.S2C_WEB_ERROR      = 2010

--目前在线人数
NetCmd.C2S_RETURN_NOW_CLIENT_NUMBER      = 2100    
NetCmd.S2C_RETURN_NOW_CLIENT_NUMBER      = 2101   

-- 登陆相关流程协议
NetCmd.C2S_LOGIN_ACCOUNT               = 9
NetCmd.S2C_LOGIN_ACCOUNT               = 10

NetCmd.C2S_LOGIN               = 11
NetCmd.S2C_LOGIN               = 12

NetCmd.C2S_RE_LOGIN            = 13
NetCmd.S2C_RE_LOGIN            = 14
NetCmd.C2S_REGISTER            = 15
NetCmd.S2C_REGISTER            = 16
NetCmd.S2C_TELLME              = 17
NetCmd.C2S_ADD_CARD				= 18

NetCmd.C2S_BROAD 				= 23
NetCmd.S2C_BROAD 				= 24

NetCmd.C2S_PAY_TYPE				= 51	-- 获取充值类型
NetCmd.S2C_PAY_TYPE				= 52	-- 获取充值类型

NetCmd.C2S_PAY_GET				= 53	-- 获取订单号
NetCmd.S2C_PAY_GET				= 54	-- 获取订单号

NetCmd.C2S_CHARGE				= 55	-- 充值 
NetCmd.S2C_CHARGE				= 56	-- 充值

NetCmd.C2S_APPLE_TRANS			= 57
NetCmd.S2C_APPLE_TRANS			= 58

NetCmd.C2S_VERSION				= 61	-- 游戏信息 
NetCmd.S2C_VERSION				= 62	-- 游戏信息

NetCmd.C2S_LOGDATA				= 20 -- 回放日志
NetCmd.S2C_LOGDATA				= 21 -- 回放日志
NetCmd.S2C_LOGIN_OTHER			= 22 --顶号


NetCmd.C2S_BUY_BEAN				= 31	-- 钻石购买麻豆
NetCmd.S2C_BUY_BEAN				= 32	-- 钻石购买麻豆


NetCmd.C2S_AGENT_ID				= 33	-- 输入 推荐 代理——ID
NetCmd.S2C_AGENT_ID				= 34	-- 钻石购买麻豆


NetCmd.C2S_BUY_LOG				= 63	-- 游戏信息 
NetCmd.S2C_BUY_LOG				= 64	-- 游戏信息

NetCmd.C2S_CONSUME_LOG				= 65	-- 游戏信息 
NetCmd.S2C_CONSUME_LOG				= 66	-- 游戏信息

-- 棋牌房间协议
NetCmd.C2S_CREATE_ROOM 			= 100
NetCmd.S2C_CREATE_ROOM 			= 101
NetCmd.C2S_JOIN_ROOM			= 102
NetCmd.S2C_JOIN_ROOM 			= 103

-- 麻将房间协议
NetCmd.C2S_MJ_CREATE_ROOM 		= 104
NetCmd.S2C_MJ_CREATE_ROOM 		= 105
NetCmd.C2S_MJ_JOIN_ROOM			= 106
NetCmd.S2C_MJ_JOIN_ROOM 		= 107
NetCmd.C2S_MJ_JOIN_ROOM_AGAIN	= 108
NetCmd.S2C_MJ_JOIN_ROOM_AGAIN	= 109
NetCmd.S2C_MJ_OUT_LINE			= 110 	-- 掉线
NetCmd.S2C_MJ_IN_LINE			= 111 	-- 掉线
NetCmd.C2S_MJ_JOIN_ROOM_HALL	= 112

NetCmd.C2S_CLEAN_DATA 		= 113
NetCmd.S2C_CLEAN_DATA		= 114

-- 宜丰
NetCmd.C2S_MJ_YF_CREATE_ROOM 		= 120
NetCmd.S2C_MJ_YF_CREATE_ROOM 		= 121
NetCmd.S2C_MJ_YF_JOIN_ROOM 			= 122
NetCmd.S2C_MJ_YF_JOIN_ROOM_AGAIN	= 123

-- 斗牛
NetCmd.C2S_DOUNIU_CREATE_ROOM 		= 130
NetCmd.S2C_DOUNIU_CREATE_ROOM 		= 131
NetCmd.S2C_DOUNIU_JOIN_ROOM 		= 132
NetCmd.S2C_DOUNIU_JOIN_ROOM_AGAIN	= 133

NetCmd.C2S_DOUNIU_BANKER 		= 134
NetCmd.S2C_DOUNIU_BANKER 		= 135
NetCmd.C2S_DOUNIU_ODDS 		= 136
NetCmd.S2C_DOUNIU_ODDS 		= 137

NetCmd.S2C_DOUNIU_READY_HAND 		= 138
NetCmd.S2C_DOUNIU_GET_HAND 		= 139
NetCmd.C2S_DOUNIU_GIVE_UP_HAND 		= 140
NetCmd.S2C_DOUNIU_GIVE_UP_HAND 		= 141
NetCmd.C2S_DOUNIU_KAN_PAI 		= 142
NetCmd.S2C_DOUNIU_KAN_PAI 		= 143
NetCmd.C2S_ZHANJI_LOG  		= 144
NetCmd.S2C_ZHANJI_LOG 		= 145

-- 棋牌玩法协议
NetCmd.S2C_TABLE_USER_INFO		= 300
NetCmd.S2C_GAME_STATUS			= 302
NetCmd.S2C_GAME_INFO			= 303
NetCmd.S2C_GAME_START			= 304
NetCmd.S2C_CALL_SCORE			= 305   -- 叫分
NetCmd.S2C_SHOW_BANKER			= 306   -- 显示庄家牌
NetCmd.S2C_OUT_CARD				= 307   -- 出牌


NetCmd.S2C_RESULT 				= 308	-- 流局
NetCmd.C2S_PASS					= 309
NetCmd.S2C_PASS					= 310
NetCmd.C2S_READY				= 311
NetCmd.S2C_READY				= 312
NetCmd.C2S_CALL_SCORE			= 313
NetCmd.C2S_OUT_CARD				= 314
NetCmd.C2S_ROOM_CHAT           	= 315
NetCmd.S2C_ROOM_CHAT           	= 316
NetCmd.C2S_LEAVE_ROOM          	= 317

-- 麻将玩法协议
NetCmd.S2C_MJ_TABLE_USER_INFO	= 350
NetCmd.S2C_MJ_LEAVE_ROOM		= 351
NetCmd.S2C_MJ_GAME_STATUS		= 352
NetCmd.S2C_MJ_GAME_INFO			= 353
NetCmd.S2C_MJ_GAME_START		= 354
NetCmd.C2S_MJ_LEAVE_ROOM       	= 355
NetCmd.C2S_MJ_READY				= 356
NetCmd.S2C_MJ_READY				= 357

NetCmd.S2C_MJ_COOL_DOWN        	= 358   -- 倒计时等待
NetCmd.C2S_MJ_OUT_CARD			= 359   -- 出牌
NetCmd.S2C_MJ_OUT_CARD			= 360
NetCmd.S2C_MJ_DRAW_CARD			= 361   -- 摸牌
NetCmd.C2S_MJ_PENG			    = 362   -- 碰
NetCmd.S2C_MJ_PENG			    = 363
NetCmd.C2S_MJ_GANG			    = 364   -- 杠
NetCmd.S2C_MJ_GANG			    = 365
NetCmd.C2S_MJ_CHI_CARD			= 366   -- 吃上家牌，组顺子
NetCmd.S2C_MJ_CHI_CARD			= 367
NetCmd.C2S_MJ_CHI_HU			= 368   -- 吃上家牌，胡
NetCmd.S2C_MJ_CHI_HU			= 369
NetCmd.C2S_MJ_HU			    = 370   -- 胡牌
NetCmd.S2C_MJ_HU			    = 371
NetCmd.S2C_MJ_JINGFEN			= 372	-- 精分
NetCmd.C2S_MJ_CAN_CHI_CARD		= 374
NetCmd.S2C_MJ_CAN_CHI_CARD		= 375
NetCmd.C2S_MJ_JIESAN			= 376	-- 解散
NetCmd.S2C_MJ_JIESAN			= 377
NetCmd.C2S_MJ_APPLY_JIESAN		= 378	-- 申请解散房间
NetCmd.S2C_MJ_APPLY_JIESAN		= 379	-- 申请响应
NetCmd.C2S_MJ_TIREN				= 381
NetCmd.S2C_MJ_TIREN				= 382
NetCmd.C2S_MJ_APPLY_JIESAN_AGREE	= 383
NetCmd.S2C_MJ_APPLY_JIESAN_AGREE	= 384

NetCmd.S2C_MJ_ROOM_NO_EXIST	= 385  --房间不存在协议 

NetCmd.TEST						= 380
NetCmd.S2C_MJ_OVER				= 399
NetCmd.S2C_ASK_JIESAN			= 400

NetCmd.S2C_VOICE			= 450 --语音聊天
NetCmd.C2S_VOICE			= 451


NetCmd.S2C_GPS_INFO			= 452 --GPS定位 上传
NetCmd.C2S_GPS_INFO			= 453


NetCmd.S2C_GPS_DISTANCE			= 454 --距离返回
NetCmd.C2S_GPS_DISTANCE			= 455


-- 玩家数据相关逻辑协议
NetCmd.S2C_LOAD_USER_DATA      	= 500       -- 同步所有user schema数据
NetCmd.S2C_SYNC_USER_DATA      	= 501       -- 同步单个user schema数据

-- 邮件协议
NetCmd.S2C_ADD_MAILS           	= 1001
NetCmd.C2S_MAILS_SEND          	= 1002 	--发送邮件
NetCmd.S2C_MAILS_SEND          	= 1003
NetCmd.C2S_MAILS_GET          	= 1005   --获取邮件列表
NetCmd.S2C_MAILS_GET          	= 1006
NetCmd.C2S_MAILS_DRAW          	= 1007   --处理邮件
NetCmd.S2C_MAILS_DRAW          	= 1008
NetCmd.C2S_MAILS_DEL         	= 1009   --删除邮件

NetCmd.C2S_MAILS_NUM         	= 1901   --获取未读邮件数量
NetCmd.S2C_MAILS_NUM         	= 1902   --获取未读邮件数量

-- 聊天协议
NetCmd.C2S_WORLD_CAHT          = 1051
NetCmd.S2C_WORLD_CAHT          = 1052


-- 朋友圈协议 

NetCmd.C2S_FRIENDS_ADD          = 1101    -- 加入朋友圈   
NetCmd.S2S_FRIENDS_ADD          = 1100    -- 加入朋友圈   
NetCmd.C2S_FRIENDS_GET          = 1102    -- 得到我加入的朋友圈 列表 
NetCmd.S2C_FRIENDS_GET          = 1103    -- 得到我加入的朋友圈 列表 
NetCmd.C2S_FRIENDS_MSG          = 1104    -- 获得我加入的朋友圈 消息 
NetCmd.S2C_FRIENDS_MSG          = 1105    -- 获得我加入的朋友圈 消息 
NetCmd.C2S_FRIENDS_DEL          = 1106    -- 退出 朋友圈   
NetCmd.S2C_FRIENDS_DEL          = 1107   -- 退出 朋友圈   


--游戏房间协议
NetCmd.C2S_GAME_ROOM          	= 1201    -- 得到大厅游戏房间 列表 
NetCmd.S2C_GAME_ROOM          	= 1202    -- 得到大厅游戏房间 列表

NetCmd.C2S_GAME_ROOM_ID          = 1203    -- 得到大厅游戏房间 id
NetCmd.S2C_GAME_ROOM_ID          = 1204    -- 得到大厅游戏房间 id

NetCmd.C2S_GAME_ROOM_IP          = 1205    -- 得到大厅游戏房间 ip 和 端口 
NetCmd.S2C_GAME_ROOM_IP          = 1206    -- 得到大厅游戏房间 ip 和 端口



return NetCmd